package com.sdhs.basicinfo.service.impl;

import java.util.List;
import com.sdhs.common.utils.SecurityUtils;
import com.sdhs.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sdhs.basicinfo.mapper.GcFoundationConfigurationReminderMapper;
import com.sdhs.basicinfo.domain.GcFoundationConfigurationReminder;
import com.sdhs.basicinfo.service.IGcFoundationConfigurationReminderService;

/**
 * 基础信息管理-提醒配置Service业务层处理
 *
 * @author add
 * @date 2025-04-04
 */
@Service
public class GcFoundationConfigurationReminderServiceImpl implements IGcFoundationConfigurationReminderService
{
    @Autowired
    private GcFoundationConfigurationReminderMapper gcFoundationConfigurationReminderMapper;

    /**
     * 查询基础信息管理-提醒配置
     *
     * @param id 基础信息管理-提醒配置主键
     * @return 基础信息管理-提醒配置
     */
    @Override
    public GcFoundationConfigurationReminder selectGcFoundationConfigurationReminderById(Long id)
    {
        return gcFoundationConfigurationReminderMapper.selectGcFoundationConfigurationReminderById(id);
    }

    /**
     * 查询基础信息管理-提醒配置列表
     *
     * @param gcFoundationConfigurationReminder 基础信息管理-提醒配置
     * @return 基础信息管理-提醒配置
     */
    @Override
    public List<GcFoundationConfigurationReminder> selectGcFoundationConfigurationReminderList(GcFoundationConfigurationReminder gcFoundationConfigurationReminder)
    {
        return gcFoundationConfigurationReminderMapper.selectGcFoundationConfigurationReminderList(gcFoundationConfigurationReminder);
    }

    /**
     * 新增基础信息管理-提醒配置
     *
     * @param gcFoundationConfigurationReminder 基础信息管理-提醒配置
     * @return 结果
     */
    @Override
    public int insertGcFoundationConfigurationReminder(GcFoundationConfigurationReminder gcFoundationConfigurationReminder)
    {
		gcFoundationConfigurationReminder.setCreater(SecurityUtils.getUsername());
        gcFoundationConfigurationReminder.setCreateTime(DateUtils.getNowDate());
        return gcFoundationConfigurationReminderMapper.insertGcFoundationConfigurationReminder(gcFoundationConfigurationReminder);
    }

    /**
     * 修改基础信息管理-提醒配置
     *
     * @param gcFoundationConfigurationReminder 基础信息管理-提醒配置
     * @return 结果
     */
    @Override
    public int updateGcFoundationConfigurationReminder(GcFoundationConfigurationReminder gcFoundationConfigurationReminder)
    {
		gcFoundationConfigurationReminder.setUpdater(SecurityUtils.getUsername());
        gcFoundationConfigurationReminder.setUpdateTime(DateUtils.getNowDate());
        return gcFoundationConfigurationReminderMapper.updateGcFoundationConfigurationReminder(gcFoundationConfigurationReminder);
    }

    /**
     * 批量删除基础信息管理-提醒配置
     *
     * @param ids 需要删除的基础信息管理-提醒配置主键
     * @return 结果
     */
    @Override
    public int deleteGcFoundationConfigurationReminderByIds(Long[] ids)
    {
        return gcFoundationConfigurationReminderMapper.deleteGcFoundationConfigurationReminderByIds(ids);
    }

    /**
     * 删除基础信息管理-提醒配置信息
     *
     * @param id 基础信息管理-提醒配置主键
     * @return 结果
     */
    @Override
    public int deleteGcFoundationConfigurationReminderById(Long id)
    {
        return gcFoundationConfigurationReminderMapper.deleteGcFoundationConfigurationReminderById(id);
    }
}
